package fctuc.dei.myTwitter.constants;

public abstract class MyTwitterConstants {

	/*
	 * TCP Server constants
	 */
	public static int TCP_LISTENER_PORT = 31500;
	public static int TCP_LISTENER_PORT_ALTERNATIVE = 31501;
	public static int MAX_ATTEMPTS = 8;
	public static int RMI_LISTENER_PORT = 7777;
	public static String BASE_HOST = "127.0.0.1";
	public static String WATCHDOG = "localhost";
	/*
	 * NIO
	 */
	public static int NIO_LISTENER_PORT = 31600;
	public static int MAX_READ_SIZE = 8024;
	/*
	 * Database constants
	 */
	public static int DB_PORT = 3086;
	public static String DB_SERVER = "127.0.0.1";
	public static String DB_USERNAME = "brimbela";
	public static String DB_PASSWORD= "";
	public static String DB_NAME = "MyTwitterDB";
	public static String DB_URL = "jdbc:mysql://127.0.0.1:3306/MyTwitterDB";
	
	/*
	 * If needed, server files location
	 */
	public static String SERVER_FILES = "/Users/brimbela/Documents/DEI/DEI-09_10/SD/workspaceSD/myTwitter/";
	
	/*
	 * Tweet constants
	 */
	public static int TWEET_MAX_LENGTH = 140;
	public static int BIO_MAX_LENGTH = 160;
	
	public static void sleep(int time){
		try {
			Thread.sleep(time);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}